<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>demo</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        div.header{
            height: 60px;
            background-color: gray;
        }
        div.inner{
            width: 800px;
            height: 60px;
            background-color:orange;
            margin: 0 auto;  /**/
        }
        .inner .logo{
            width: 100px;
            height: 60px;
            background-image: url(image/logo2.jpg);
            background-size: 100px 60px;
            float: left;
        }
        .inner .nav{
            width: 700px;
            height: 60px;
            float: left;
        }
        ul{
            list-style-type: none;
        }
        ul li{
            width: 100px;
            height: 60px;
            float: left;
            line-height: 60px;  /*行高*/
        }
        ul li a{
            display: block;
            width: 100px;
            height: 60px;
            text-decoration: none;
            text-align: center;
        }
        ul li a:hover{
            background-color: gold;
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="inner">
            <div class="logo">
            </div>
            <div class="nav">
                <ul>
                    <li><a href="#">导航栏</a></li>
                    <li><a href="#">导航栏</a></li>
                    <li><a href="#">导航栏</a></li>
                    <li><a href="#">导航栏</a></li>
                    <li><a href="#">导航栏</a></li>
                    <li><a href="#">导航栏</a></li>
                    <li><a href="#">导航栏</a></li>
                </ul>
            </div>
        </div>
    </div>
</body>
</html>